\hypertarget{main_8c}{}\section{main.\+c File Reference}
\label{main_8c}\index{main.\+c@{main.\+c}}
{\ttfamily \#include \char`\"{}ch.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}hal.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}stm32f4xx\+\_\+conf.\+h\char`\"{}}\\*
{\ttfamily \#include $<$stdio.\+h$>$}\\*
{\ttfamily \#include $<$math.\+h$>$}\\*
{\ttfamily \#include $<$string.\+h$>$}\\*
{\ttfamily \#include $<$stdlib.\+h$>$}\\*
{\ttfamily \#include \char`\"{}main.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}mcpwm.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}ledpwm.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}comm\+\_\+usb.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}terminal.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}hw.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}app.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}packet.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}commands.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}timeout.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}comm\+\_\+can.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}ws2811.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}led\+\_\+external.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}encoder.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}servo.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}servo\+\_\+simple.\+h\char`\"{}}\\*
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{main_8c_a245241a3f6ecf08bdde9d21d60373d87}{A\+D\+C\+\_\+\+S\+A\+M\+P\+L\+E\+\_\+\+M\+A\+X\+\_\+\+L\+E\+N}~2000
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{main_8c_a3807700738d43fbd3be7b67dd5a8482e}{main\+\_\+dma\+\_\+adc\+\_\+handler} (void)
\item 
float \hyperlink{main_8c_ad442efd5fcd5aa774e3a450035116f6b}{main\+\_\+get\+\_\+last\+\_\+adc\+\_\+isr\+\_\+duration} (void)
\item 
void \hyperlink{main_8c_a40f167339bcd22cf2b6dd937994aef26}{main\+\_\+sample\+\_\+print\+\_\+data} (bool at\+\_\+start, uint16\+\_\+t len, uint8\+\_\+t decimation)
\item 
int \hyperlink{main_8c_a840291bc02cba5474a4cb46a9b9566fe}{main} (void)
\end{DoxyCompactItemize}


\subsection{Macro Definition Documentation}
\hypertarget{main_8c_a245241a3f6ecf08bdde9d21d60373d87}{}\index{main.\+c@{main.\+c}!A\+D\+C\+\_\+\+S\+A\+M\+P\+L\+E\+\_\+\+M\+A\+X\+\_\+\+L\+E\+N@{A\+D\+C\+\_\+\+S\+A\+M\+P\+L\+E\+\_\+\+M\+A\+X\+\_\+\+L\+E\+N}}
\index{A\+D\+C\+\_\+\+S\+A\+M\+P\+L\+E\+\_\+\+M\+A\+X\+\_\+\+L\+E\+N@{A\+D\+C\+\_\+\+S\+A\+M\+P\+L\+E\+\_\+\+M\+A\+X\+\_\+\+L\+E\+N}!main.\+c@{main.\+c}}
\subsubsection[{A\+D\+C\+\_\+\+S\+A\+M\+P\+L\+E\+\_\+\+M\+A\+X\+\_\+\+L\+E\+N}]{\setlength{\rightskip}{0pt plus 5cm}\#define A\+D\+C\+\_\+\+S\+A\+M\+P\+L\+E\+\_\+\+M\+A\+X\+\_\+\+L\+E\+N~2000}\label{main_8c_a245241a3f6ecf08bdde9d21d60373d87}


\subsection{Function Documentation}
\hypertarget{main_8c_a840291bc02cba5474a4cb46a9b9566fe}{}\index{main.\+c@{main.\+c}!main@{main}}
\index{main@{main}!main.\+c@{main.\+c}}
\subsubsection[{main(void)}]{\setlength{\rightskip}{0pt plus 5cm}int main (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}\label{main_8c_a840291bc02cba5474a4cb46a9b9566fe}
\hypertarget{main_8c_a3807700738d43fbd3be7b67dd5a8482e}{}\index{main.\+c@{main.\+c}!main\+\_\+dma\+\_\+adc\+\_\+handler@{main\+\_\+dma\+\_\+adc\+\_\+handler}}
\index{main\+\_\+dma\+\_\+adc\+\_\+handler@{main\+\_\+dma\+\_\+adc\+\_\+handler}!main.\+c@{main.\+c}}
\subsubsection[{main\+\_\+dma\+\_\+adc\+\_\+handler(void)}]{\setlength{\rightskip}{0pt plus 5cm}void main\+\_\+dma\+\_\+adc\+\_\+handler (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}\label{main_8c_a3807700738d43fbd3be7b67dd5a8482e}
\hypertarget{main_8c_ad442efd5fcd5aa774e3a450035116f6b}{}\index{main.\+c@{main.\+c}!main\+\_\+get\+\_\+last\+\_\+adc\+\_\+isr\+\_\+duration@{main\+\_\+get\+\_\+last\+\_\+adc\+\_\+isr\+\_\+duration}}
\index{main\+\_\+get\+\_\+last\+\_\+adc\+\_\+isr\+\_\+duration@{main\+\_\+get\+\_\+last\+\_\+adc\+\_\+isr\+\_\+duration}!main.\+c@{main.\+c}}
\subsubsection[{main\+\_\+get\+\_\+last\+\_\+adc\+\_\+isr\+\_\+duration(void)}]{\setlength{\rightskip}{0pt plus 5cm}float main\+\_\+get\+\_\+last\+\_\+adc\+\_\+isr\+\_\+duration (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}\label{main_8c_ad442efd5fcd5aa774e3a450035116f6b}
\hypertarget{main_8c_a40f167339bcd22cf2b6dd937994aef26}{}\index{main.\+c@{main.\+c}!main\+\_\+sample\+\_\+print\+\_\+data@{main\+\_\+sample\+\_\+print\+\_\+data}}
\index{main\+\_\+sample\+\_\+print\+\_\+data@{main\+\_\+sample\+\_\+print\+\_\+data}!main.\+c@{main.\+c}}
\subsubsection[{main\+\_\+sample\+\_\+print\+\_\+data(bool at\+\_\+start, uint16\+\_\+t len, uint8\+\_\+t decimation)}]{\setlength{\rightskip}{0pt plus 5cm}void main\+\_\+sample\+\_\+print\+\_\+data (
\begin{DoxyParamCaption}
\item[{bool}]{at\+\_\+start, }
\item[{uint16\+\_\+t}]{len, }
\item[{uint8\+\_\+t}]{decimation}
\end{DoxyParamCaption}
)}\label{main_8c_a40f167339bcd22cf2b6dd937994aef26}
